package com.jdbctest;

import java.sql.*;

public class JDBCSample {

	public static void main(String args[]) throws Exception {
		try {
			Class.forName("com.mysql.jdbc.Driver");
			Connection conn = null;
			conn = DriverManager.getConnection("jdbc:mysql://172.23.180.81/test",
					"testme", "testme");
			System.out.print("Database is connected !");
			conn.close();

		} catch (Exception ex) {
			throw ex;
		}
	}
}